import request from "@/utils/request";

// 查询告警记录列表
export function listRecord(query) {
  return request({
    url: "/system/alertrecord/list",
    method: "get",
    params: query,
  });
}

// 查询告警记录详细
export function getRecord(alertRecordId) {
  return request({
    url: "/system/alertrecord/" + alertRecordId,
    method: "get",
  });
}

// 新增告警记录
export function addRecord(data) {
  return request({
    url: "/system/alertrecord",
    method: "post",
    data: data,
  });
}

// 修改告警记录
export function updateRecord(data) {
  return request({
    url: "/system/alertrecord",
    method: "put",
    data: data,
  });
}

// 删除告警记录
export function delRecord(alertRecordId) {
  return request({
    url: "/system/alertrecord/" + alertRecordId,
    method: "delete",
  });
}
